
ac.buff('弹道'){
    level = 1,
    keep = 1,
    old_missile = '',
    on_add = function(self)
        local unit = self.owner
        self.old_missile = unit:get_slk('Missileart','.mdx')
        self.old_speed = tonumber(unit:get_slk('Missilespeed'))
        self.old_arc = tonumber(unit:get_slk('Missilearc'))
        japi.SetUnitMissileArc(unit.handle,self.arc or self.old_arc)
        japi.SetUnitMissileSpeed(unit.handle,self.speed or self.old_speed)
        japi.SetUnitMissileModel(unit.handle,self.model)
    end,
    on_remove = function(self)
        local unit = self.owner
        japi.SetUnitMissileArc(unit.handle,self.old_arc)
        japi.SetUnitMissileSpeed(unit.handle,self.old_speed)
        japi.SetUnitMissileModel(unit.handle,self.old_missile)
    end,
    on_cover = function(self)
        return new.level>=self.level
    end,
}